package nzk.hssftemp;

import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.ss.usermodel.Font;

/**
 * Cell Style for detail's header
 *
 * @author N. Zulkarnaen (n.zulkarnaen@gmail.com)
 *         Date: 6/27/13
 *         Time: 6:13 PM
 * @version $Revision: 5 $
 */
public class CSDetailHeader extends CSBase {

    public CSDetailHeader(HSSFTemplate rpt) {
        super(rpt);
        font.setFontHeightInPoints((short) 10);
        font.setBoldweight(Font.BOLDWEIGHT_BOLD);
        style.setAlignment(HSSFCellStyle.ALIGN_CENTER);
        style.setWrapText(false);
        style.setFillForegroundColor(Color.GREY);
        style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
        style.setBorderTop(HSSFCellStyle.BORDER_THIN);
        style.setBorderRight(HSSFCellStyle.BORDER_THIN);
        style.setBorderBottom(HSSFCellStyle.BORDER_THIN);
        style.setBorderLeft(HSSFCellStyle.BORDER_THIN);
        //		style.setTopBorderColor(BLACK);
        //		style.setRightBorderColor(BLACK);
        //		style.setBottomBorderColor(BLACK);
        //		style.setLeftBorderColor(BLACK);
        style.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);
    }

}
